﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using SaiLing.Domain.Specification;
using SaiLing.Paging;
using SaiLing.Repository;
using SaiLing.SingleSignOn.Domain.Entities.DataTransferObject;
using SaiLing.SingleSignOn.Domain.Entities.System;

namespace SaiLing.SingleSignOn.Domain.Interfaces.System
{
    public interface IModuleRepository : IRepository<Module>
    {
        Task<PageData<ModuleDTO>> PageDataList<TS>(int pageIndex, int pageSize, ISpecification<Module> specification,
            Expression<Func<Module, TS>> orderByExpression, bool isDesc);
    }
}
